const dynamicRouter = [
    {
        path: 'user',
        name: 'user',
        component: () =>
            import('@/views/user/index.vue'),
        meta: {
            name: "用户管理",
            icon: "icon-shangpin"
        },
        redirect: "/user/userlist",
        children: [

            {
                path: 'userlist',
                name: 'userlist',
                component: () =>
                    import('@/views/user/userlist.vue'),
                meta: {
                    name: "用户列表",
                    icon: "icon-shangpin"
                },

                children: [

                    {
                        path: 'adduser',
                        name: 'adduser',
                        component: () =>
                            import('@/views/user/adduser.vue'),
                        meta: {
                            name: "添加用户",
                            icon: "icon-shangpin"
                        },

                    },
                    {
                        path: 'deluser',
                        name: 'deluser',
                        component: () =>
                            import('@/views/user/deluser.vue'),
                        meta: {
                            name: "删除用户",
                            icon: "icon-shangpin"
                        },


                    }

                ]
            }

        ]
    },
    {
        path: 'exptOrganizationSystem',
        name: 'ExptOrganizationSystem',
        component: () =>
            import('../views/ExptOrganizationSystem/index.vue'),
        meta: {
            name: "实验组织分系统",
            icon: "icon-shangpin"
        },
        redirect: "/user/userlist",
        children: [

            {
                path: 'exptOrganization',
                name: 'ExptOrganization',
                component: () =>
                    import('../views/ExptOrganizationSystem/ExptOrganization/index.vue'),
                meta: {
                    name: "实验组织模块",
                    icon: "icon-shangpin"
                },
                redirect: "/exptOrganization/exptAdd",
                children: [

                    {
                        path: 'exptAdd',
                        name: 'ExptAdd',
                        component: () =>
                            import('../views/ExptOrganizationSystem/ExptOrganization/ExptAdd.vue'),
                        meta: {
                            name: "新建",
                            icon: "icon-shangpin"
                        },

                    },
                    {
                        path: 'exptManage',
                        name: 'ExptManage',
                        component: () =>
                            import('../views/ExptOrganizationSystem/ExptOrganization/ExptManage.vue'),
                        meta: {
                            name: "实验管理",
                            icon: "icon-shangpin"
                        },

                    },
                    {
                        path: 'enterExpt',
                        name: 'EnterExpt',
                        component: () =>
                            import('../views/ExptOrganizationSystem/ExptOrganization/EnterExpt.vue'),
                        meta: {
                            name: "进入实验",
                            icon: "icon-shangpin"
                        },

                    },


                ]
            },

            {
                path: 'exptResource',
                name: 'ExptResource',
                component: () =>
                    import('../views/ExptOrganizationSystem/ExptResource/index.vue'),
                meta: {
                    name: "实验资源模块",
                    icon: "icon-shangpin"
                },
                redirect: "/exptResource/dataModel",
                children: [

                    {
                        path: 'dataModel',
                        name: 'DataModel',
                        component: () =>
                            import('../views/ExptOrganizationSystem/ExptResource/DataModel.vue'),
                        meta: {
                            name: "数据模型",
                            icon: "icon-shangpin"
                        },

                    },
                    {
                        path: 'algorithm',
                        name: 'Algorithm',
                        component: () =>
                            import('../views/ExptOrganizationSystem/ExptResource/Algorithm.vue'),
                        meta: {
                            name: "算法",
                            icon: "icon-shangpin"
                        },

                    },
                    {
                        path: 'knowledgeBase',
                        name: 'KnowledgeBase',
                        component: () =>
                            import('../views/ExptOrganizationSystem/ExptResource/KnowledgeBase.vue'),
                        meta: {
                            name: "知识库",
                            icon: "icon-shangpin"
                        },

                    },
                    {
                        path: 'mapData',
                        name: 'MapData',
                        component: () =>
                            import('../views/ExptOrganizationSystem/ExptResource/MapData.vue'),
                        meta: {
                            name: "地图数据",
                            icon: "icon-shangpin"
                        },

                    }, {
                        path: 'userData',
                        name: 'UserData',
                        component: () =>
                            import('../views/ExptOrganizationSystem/ExptResource/UserData.vue'),
                        meta: {
                            name: "用户数据",
                            icon: "icon-shangpin"
                        },

                    },

                ]
            },

        ]
    },




]
export default dynamicRouter